import * as TYPES from '../action-type'
import api from '@/api'

const detailAction = {
    async [TYPES.QUERY_DETAIL]({ id ='', url ='' }) {
        let res = []

        res = await api.getMovieDetail({ id, url })
        return ({ type: TYPES.QUERY_DETAIL, ...res  ,url})
    },


}



export default detailAction;  